package cn.tedu.demo.doy3;


import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



public class Test01 {
    @Test
    public  void test01(){
        ApplicationContext ac=
                new ClassPathXmlApplicationContext("beans.xml");

        Student student=(Student)ac.getBean("student");
        System.out.println(student);
        ((ClassPathXmlApplicationContext)ac).close();
    }
}
